import request from '@/utils/request'
function queryQhList() {
    return request({
        url: '/task/division/list',
        method: 'get',
        params: {
            pageNum: 1,
            pageSize: 99999,
        },
    })
}
export function getQhList(role,areaList) {
    // return (() => {
    //     queryQhList().then(res => {
    //         let list = res.rows.filter(item => item.parentDivisionId == '138826')
    //         list.map(item => {
    //             item.children = res.rows.filter(val => val.parentDivisionId == item.divisionId)
    //         })
    //         console.log(list,'---print---');
    //         return list
    //     })
    // })()
    let list = [
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138827",
            "divisionNo": "140100",
            "divisionName": "太原市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "tys",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138828",
                    "divisionNo": "140105",
                    "divisionName": "小店区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "xdq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138829",
                    "divisionNo": "140106",
                    "divisionName": "迎泽区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "yzq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138830",
                    "divisionNo": "140107",
                    "divisionName": "杏花岭区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "xhlq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138831",
                    "divisionNo": "140108",
                    "divisionName": "尖草坪区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "jcpq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138832",
                    "divisionNo": "140109",
                    "divisionName": "万柏林区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "wblq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138833",
                    "divisionNo": "140110",
                    "divisionName": "晋源区",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "jyq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138834",
                    "divisionNo": "140121",
                    "divisionName": "清徐县",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "qxx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138835",
                    "divisionNo": "140122",
                    "divisionName": "阳曲县",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "yqx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138836",
                    "divisionNo": "140123",
                    "divisionName": "娄烦县",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "lfx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138837",
                    "divisionNo": "140181",
                    "divisionName": "古交市",
                    "parentDivisionId": "138827",
                    "divisionLevel": 3,
                    "pinyinCode": "gjs"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138838",
            "divisionNo": "140200",
            "divisionName": "大同市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "dts",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138842",
                    "divisionNo": "140212",
                    "divisionName": "新荣区",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "xrq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138843",
                    "divisionNo": "140221",
                    "divisionName": "阳高县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "ygx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138844",
                    "divisionNo": "140222",
                    "divisionName": "天镇县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "tzx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138845",
                    "divisionNo": "140223",
                    "divisionName": "广灵县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "glx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138846",
                    "divisionNo": "140224",
                    "divisionName": "灵丘县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "lqx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138847",
                    "divisionNo": "140225",
                    "divisionName": "浑源县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "hyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138848",
                    "divisionNo": "140226",
                    "divisionName": "左云县",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "zyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255154",
                    "divisionNo": "140213",
                    "divisionName": "平城区",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "pcq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255155",
                    "divisionNo": "140214",
                    "divisionName": "云冈区",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "ygq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255156",
                    "divisionNo": "140215",
                    "divisionName": "云州区",
                    "parentDivisionId": "138838",
                    "divisionLevel": 3,
                    "pinyinCode": "yzq"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138850",
            "divisionNo": "140300",
            "divisionName": "阳泉市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "yqs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138851",
                    "divisionNo": "140302",
                    "divisionName": "城区",
                    "parentDivisionId": "138850",
                    "divisionLevel": 3,
                    "pinyinCode": "cq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138852",
                    "divisionNo": "140303",
                    "divisionName": "矿区",
                    "parentDivisionId": "138850",
                    "divisionLevel": 3,
                    "pinyinCode": "kq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138853",
                    "divisionNo": "140311",
                    "divisionName": "郊区",
                    "parentDivisionId": "138850",
                    "divisionLevel": 3,
                    "pinyinCode": "jq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138854",
                    "divisionNo": "140321",
                    "divisionName": "平定县",
                    "parentDivisionId": "138850",
                    "divisionLevel": 3,
                    "pinyinCode": "pdx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138855",
                    "divisionNo": "140322",
                    "divisionName": "盂县",
                    "parentDivisionId": "138850",
                    "divisionLevel": 3,
                    "pinyinCode": "yx"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138856",
            "divisionNo": "140400",
            "divisionName": "长治市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "czs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138860",
                    "divisionNo": "140423",
                    "divisionName": "襄垣县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "xyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138862",
                    "divisionNo": "140425",
                    "divisionName": "平顺县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "psx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138863",
                    "divisionNo": "140426",
                    "divisionName": "黎城县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "lcx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138864",
                    "divisionNo": "140427",
                    "divisionName": "壶关县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "hgx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138865",
                    "divisionNo": "140428",
                    "divisionName": "长子县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "czx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138866",
                    "divisionNo": "140429",
                    "divisionName": "武乡县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "wxx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138867",
                    "divisionNo": "140430",
                    "divisionName": "沁县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "qx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138868",
                    "divisionNo": "140431",
                    "divisionName": "沁源县",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "qyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255157",
                    "divisionNo": "140403",
                    "divisionName": "潞州区",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "lzq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255158",
                    "divisionNo": "140404",
                    "divisionName": "上党区",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "sdq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255159",
                    "divisionNo": "140405",
                    "divisionName": "屯留区",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "tlq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "255160",
                    "divisionNo": "140406",
                    "divisionName": "潞城区",
                    "parentDivisionId": "138856",
                    "divisionLevel": 3,
                    "pinyinCode": "lcq"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138870",
            "divisionNo": "140500",
            "divisionName": "晋城市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "jcs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138871",
                    "divisionNo": "140502",
                    "divisionName": "城区",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "cq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138872",
                    "divisionNo": "140521",
                    "divisionName": "沁水县",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "qsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138873",
                    "divisionNo": "140522",
                    "divisionName": "阳城县",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "ycx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138874",
                    "divisionNo": "140524",
                    "divisionName": "陵川县",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "lcx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138875",
                    "divisionNo": "140525",
                    "divisionName": "泽州县",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "zzx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138876",
                    "divisionNo": "140581",
                    "divisionName": "高平市",
                    "parentDivisionId": "138870",
                    "divisionLevel": 3,
                    "pinyinCode": "gps"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138877",
            "divisionNo": "140600",
            "divisionName": "朔州市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "szs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138878",
                    "divisionNo": "140602",
                    "divisionName": "朔城区",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "scq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138879",
                    "divisionNo": "140603",
                    "divisionName": "平鲁区",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "plq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138880",
                    "divisionNo": "140621",
                    "divisionName": "山阴县",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "syx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138881",
                    "divisionNo": "140622",
                    "divisionName": "应县",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "yx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138882",
                    "divisionNo": "140623",
                    "divisionName": "右玉县",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "yyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138883",
                    "divisionNo": "140681",
                    "divisionName": "怀仁市",
                    "parentDivisionId": "138877",
                    "divisionLevel": 3,
                    "pinyinCode": "hrs"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138884",
            "divisionNo": "140700",
            "divisionName": "晋中市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "jzs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138885",
                    "divisionNo": "140702",
                    "divisionName": "榆次区",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "ycq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138886",
                    "divisionNo": "140721",
                    "divisionName": "榆社县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "ysx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138887",
                    "divisionNo": "140722",
                    "divisionName": "左权县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "zqx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138888",
                    "divisionNo": "140723",
                    "divisionName": "和顺县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "hsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138889",
                    "divisionNo": "140724",
                    "divisionName": "昔阳县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "xyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138890",
                    "divisionNo": "140725",
                    "divisionName": "寿阳县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "syx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138892",
                    "divisionNo": "140727",
                    "divisionName": "祁县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "qx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138893",
                    "divisionNo": "140728",
                    "divisionName": "平遥县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "pyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138894",
                    "divisionNo": "140729",
                    "divisionName": "灵石县",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "lsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138895",
                    "divisionNo": "140781",
                    "divisionName": "介休市",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "jxs"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "399280932",
                    "divisionNo": "140703",
                    "divisionName": "太谷区",
                    "parentDivisionId": "138884",
                    "divisionLevel": 3,
                    "pinyinCode": "tgq"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138896",
            "divisionNo": "140800",
            "divisionName": "运城市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "ycs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138897",
                    "divisionNo": "140802",
                    "divisionName": "盐湖区",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "yhq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138898",
                    "divisionNo": "140821",
                    "divisionName": "临猗县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "lyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138899",
                    "divisionNo": "140822",
                    "divisionName": "万荣县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "wrx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138900",
                    "divisionNo": "140823",
                    "divisionName": "闻喜县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "wxx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138901",
                    "divisionNo": "140824",
                    "divisionName": "稷山县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "jsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138902",
                    "divisionNo": "140825",
                    "divisionName": "新绛县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "xjx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138903",
                    "divisionNo": "140826",
                    "divisionName": "绛县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "jx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138904",
                    "divisionNo": "140827",
                    "divisionName": "垣曲县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "yqx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138905",
                    "divisionNo": "140828",
                    "divisionName": "夏县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "xx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138906",
                    "divisionNo": "140829",
                    "divisionName": "平陆县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "plx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138907",
                    "divisionNo": "140830",
                    "divisionName": "芮城县",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "rcx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138908",
                    "divisionNo": "140881",
                    "divisionName": "永济市",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "yjs"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138909",
                    "divisionNo": "140882",
                    "divisionName": "河津市",
                    "parentDivisionId": "138896",
                    "divisionLevel": 3,
                    "pinyinCode": "hjs"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138910",
            "divisionNo": "140900",
            "divisionName": "忻州市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "xzs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138911",
                    "divisionNo": "140902",
                    "divisionName": "忻府区",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "xfq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138912",
                    "divisionNo": "140921",
                    "divisionName": "定襄县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "dxx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138913",
                    "divisionNo": "140922",
                    "divisionName": "五台县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "wtx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138914",
                    "divisionNo": "140923",
                    "divisionName": "代县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "dx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138915",
                    "divisionNo": "140924",
                    "divisionName": "繁峙县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "fzx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138916",
                    "divisionNo": "140925",
                    "divisionName": "宁武县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "nwx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138917",
                    "divisionNo": "140926",
                    "divisionName": "静乐县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "jlx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138918",
                    "divisionNo": "140927",
                    "divisionName": "神池县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "scx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138919",
                    "divisionNo": "140928",
                    "divisionName": "五寨县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "wzx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138920",
                    "divisionNo": "140929",
                    "divisionName": "岢岚县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "klx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138921",
                    "divisionNo": "140930",
                    "divisionName": "河曲县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "hqx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138922",
                    "divisionNo": "140931",
                    "divisionName": "保德县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "bdx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138923",
                    "divisionNo": "140932",
                    "divisionName": "偏关县",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "pgx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138924",
                    "divisionNo": "140981",
                    "divisionName": "原平市",
                    "parentDivisionId": "138910",
                    "divisionLevel": 3,
                    "pinyinCode": "yps"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138925",
            "divisionNo": "141000",
            "divisionName": "临汾市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "lfs",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138926",
                    "divisionNo": "141002",
                    "divisionName": "尧都区",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "ydq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138927",
                    "divisionNo": "141021",
                    "divisionName": "曲沃县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "qwx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138928",
                    "divisionNo": "141022",
                    "divisionName": "翼城县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "ycx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138929",
                    "divisionNo": "141023",
                    "divisionName": "襄汾县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "xfx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138930",
                    "divisionNo": "141024",
                    "divisionName": "洪洞县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "hdx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138931",
                    "divisionNo": "141025",
                    "divisionName": "古县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "gx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138932",
                    "divisionNo": "141026",
                    "divisionName": "安泽县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "azx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138933",
                    "divisionNo": "141027",
                    "divisionName": "浮山县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "fsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138934",
                    "divisionNo": "141028",
                    "divisionName": "吉县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "jx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138935",
                    "divisionNo": "141029",
                    "divisionName": "乡宁县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "xnx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138936",
                    "divisionNo": "141030",
                    "divisionName": "大宁县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "dnx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138937",
                    "divisionNo": "141031",
                    "divisionName": "隰县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "xx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138938",
                    "divisionNo": "141032",
                    "divisionName": "永和县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "yhx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138939",
                    "divisionNo": "141033",
                    "divisionName": "蒲县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "px"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138940",
                    "divisionNo": "141034",
                    "divisionName": "汾西县",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "fxx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138941",
                    "divisionNo": "141081",
                    "divisionName": "侯马市",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "hms"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138942",
                    "divisionNo": "141082",
                    "divisionName": "霍州市",
                    "parentDivisionId": "138925",
                    "divisionLevel": 3,
                    "pinyinCode": "hzs"
                }
            ]
        },
        {
            "createBy": null,
            "createTime": null,
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "divisionId": "138943",
            "divisionNo": "141100",
            "divisionName": "吕梁市",
            "parentDivisionId": "138826",
            "divisionLevel": 2,
            "pinyinCode": "lls",
            "children": [
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138944",
                    "divisionNo": "141102",
                    "divisionName": "离石区",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "lsq"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138945",
                    "divisionNo": "141121",
                    "divisionName": "文水县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "wsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138946",
                    "divisionNo": "141122",
                    "divisionName": "交城县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "jcx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138947",
                    "divisionNo": "141123",
                    "divisionName": "兴县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "xx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138948",
                    "divisionNo": "141124",
                    "divisionName": "临县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "lx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138949",
                    "divisionNo": "141125",
                    "divisionName": "柳林县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "llx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138950",
                    "divisionNo": "141126",
                    "divisionName": "石楼县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "slx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138951",
                    "divisionNo": "141127",
                    "divisionName": "岚县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "lx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138952",
                    "divisionNo": "141128",
                    "divisionName": "方山县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "fsx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138953",
                    "divisionNo": "141129",
                    "divisionName": "中阳县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "zyx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138954",
                    "divisionNo": "141130",
                    "divisionName": "交口县",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "jkx"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138955",
                    "divisionNo": "141181",
                    "divisionName": "孝义市",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "xys"
                },
                {
                    "createBy": null,
                    "createTime": null,
                    "updateBy": null,
                    "updateTime": null,
                    "remark": null,
                    "divisionId": "138956",
                    "divisionNo": "141182",
                    "divisionName": "汾阳市",
                    "parentDivisionId": "138943",
                    "divisionLevel": 3,
                    "pinyinCode": "fys"
                }
            ]
        }
    ]
    let resList = []
    switch (role) {
        case 'cityAdmin':
            resList = list.filter(item=>areaList.includes(item.divisionId)||areaList.includes(item.parentDivisionId))
            break;
    
        case 'countyAdmin':
            list.map(item=>{
                resList = resList.concat(item.children.filter(val=>{
                    return areaList.includes(val.divisionId)
                }))
            })
            // resList = list.filter(item=>areaList.includes(item.divisionId))
            break;
    
        default:
            resList = list
            break;
    }
    return resList
}